import { createRouter, createWebHashHistory } from 'vue-router'
import Login from '../components/Login.vue'
import Home from '../components/Home.vue'
import AITrainingCenter from '../view/AITrainingCenter.vue'
import MyDesk from '../view/MyDesk.vue'
import CourseResources from '../view/CourseResources.vue'
import AcademicCenter from '../view/AcademicCenter.vue'
import RoomCenter from '../view/RoomCenter.vue'
const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login
  },
  {
    path: '/home',
    name: 'Home',
    component: Home,
    children: [
      {
        path: '/AITrainingCenter',
        component: AITrainingCenter
      },
      {
        path: '/CourseResources',
        component:  CourseResources
      },
      {
        path: '/MyDesk',
        component:  MyDesk
      },
      {
        path: '/AcademicCenter',
        component:  AcademicCenter
      },{
        path: '/RoomCenter',
        component:   RoomCenter
      }

    ]

  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
